package cn.edu.hbsi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;

import java.util.Date;

@TableName("高天原")
@Component
public class GaoTianYuan
{
    @TableId(value = "编号",type = IdType.AUTO)
    private Integer id;
    @TableField("名字")
    private String name;
    @TableField("职位")
    private String position;
    @TableField("等级")
    private Integer grade;
    @TableField("战力")
    private Integer power;
    @TableField("累计功勋")
    private Integer exploit;
    @TableField("加入时间")
    private Date joinTime;
    @TableField("在线状态")
    private String onlineStatus;

    public GaoTianYuan() {
    }

    public GaoTianYuan(String name, String position, Integer grade, Integer power, Integer exploit, Date joinTime, String onlineStatus) {
        this.name = name;
        this.position = position;
        this.grade = grade;
        this.power = power;
        this.exploit = exploit;
        this.joinTime = joinTime;
        this.onlineStatus = onlineStatus;
    }

    public GaoTianYuan(Integer id, String name, String position, Integer grade, Integer power, Integer exploit, Date joinTime, String onlineStatus) {
        this.id = id;
        this.name = name;
        this.position = position;
        this.grade = grade;
        this.power = power;
        this.exploit = exploit;
        this.joinTime = joinTime;
        this.onlineStatus = onlineStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getPower() {
        return power;
    }

    public void setPower(Integer power) {
        this.power = power;
    }

    public Integer getExploit() {
        return exploit;
    }

    public void setExploit(Integer exploit) {
        this.exploit = exploit;
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public String getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(String onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    @Override
    public String toString() {
        return "GaoTianYuan{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", position='" + position + '\'' +
                ", grade=" + grade +
                ", power=" + power +
                ", exploit=" + exploit +
                ", joinTime=" + joinTime +
                ", onlineStatus='" + onlineStatus + '\'' +
                '}';
    }
}
